import http from './http'

// 搜索 https://api-hmugo-web.itheima.net/api/public/v1/goods/search GET

export const searchApi = (query) => {
    return http({
        url: 'https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        method: 'GET',
        params: { query }
    })
}